.class_program {
  padding: 0;
  margin-top: 25rem !important;
  width: 100%;
  max-width: 150rem;
  margin: 0 auto;
  align-items: center;
  color: white;
  border-radius: 20px;
  position: relative;
  background-size: contain !important;
}
.class_program div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: rgba(0, 0, 0, 0.65);
  position: relative;
  z-index: 3;
  width: 100%;
}
.class_program div:first-child {
  padding: 4rem !important;
  border-radius: 20px;
}
.class_img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: contain;
}
.class_program div:last-child {
  /* background-color: orange; */
  height: 100%;
  width: 100%;
  z-index: 1;
}
.class_program div h1 {
  font-size: 4.2rem;
}
.class_program div p {
  font-size: 1.8rem;
  width: 100%;
  max-width: 1024px;
}
.class_program div a {
  font-size: 2.4rem;
  padding: 0.5rem 1rem;
  background-color: white;
  color: #45260a !important;
  text-align: center;
  max-width: 140px;
  border-radius: 10px;
}

.class_program ul li {
  font-size: 1.6rem;
}
.cenovnik {
  width: 100%;
  max-width: 220rem;
  margin: 5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
@media only screen and (max-width: 770px) {
  .cenovnik {
    flex-direction: column;
  }
}
.cenovnik div {
  width: 100%;
  padding: 2rem 1rem;
  box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  color: #5a3a01;
  transition: all 1s ease;
}
.cenovnik div h2 {
  font-size: 2.2rem;
  transition: all 1s ease;
}
.cenovnik div:hover {
  background-color: rgba(0, 0, 0, 0.6);
  color: white !important;
  transform: scale(1.05);
}
.cenovnik div:hover h2 {
  color: white;
}

.cenovnik div p {
  font-size: 1.8rem;
}
.cenovnik div ul li {
  font-size: 1.6rem;
}
@media only screen and (max-width: 1024px) {
  .class_program {
    grid-template-columns: 1fr;
    position: relative;
  }
  .class_program div img {
    position: absolute;
    top: 0;
  }
  .class_program div:first-child {
    background-color: rgba(26, 26, 26, 0.75);
  }
}

@media only screen and (max-width: 600px) {
  .class_program h1 {
    font-size: 3.4rem !important;
  }
  .cenovnik div h2 {
    font-size: 2rem;
  }
  .cenovnik div > p {
    font-size: 1.5rem !important;
  }
}

@media only screen and (max-width: 408px) {
  .class_program div h1 {
    font-size: 2.4rem !important;
  }
  .cenovnik div ul li {
    font-size: 1.4rem !important;
  }
  .cenovnik div > p {
    font-size: 1.4rem !important;
  }
}
@media only screen and (max-width: 380px) {
  .class_program div h1 {
    font-size: 1.8rem;
  }
  .class_program ul li {
    font-size: 1.3rem !important;
  }
  .class_program div > p {
    font-size: 1.3rem !important;
  }
}
